<template>
  <div class="tryimage_page">
    <header>
      <van-icon name="arrow-left" class="icon" @click="back" />
      <p>我的测肤图像</p>
    </header>
    <main>
      <p class="msg_p">测肤图像记录达到天，即可开启功能!</p>
      <div class="box">
        <div class="middle_box">
          <div class="small_box">
            <div class="circle">1天</div>
            <hr class="line" />
            <div class="circle">2天</div>
            <hr class="line" />
            <div class="circle">3天</div>
          </div>
          <div class="status_box">
            <span class="status_sp">今天未测肤</span>
            <br />
            <div class="totest">点此测肤</div>
          </div>
        </div>
      </div>
      <img class="rili" src="../assets/img/tryimage/rili.png" alt="" />
      <img class="cat" src="../assets/img/tryimage/katong.png" alt="" />
    </main>
    <footer>
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="#B5EDEC">
        <van-swipe-item
          ><img class="slide_pic" src="../assets/img/tryimage/img01.png" alt=""
        /></van-swipe-item>
        <van-swipe-item
          ><img class="slide_pic" src="../assets/img/tryimage/img01.png" alt=""
        /></van-swipe-item>
        <van-swipe-item
          ><img class="slide_pic" src="../assets/img/tryimage/img01.png" alt=""
        /></van-swipe-item>
      </van-swipe>
    </footer>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
// import { ref } from "vue";
export default {
  setup() {
    const router = useRouter();
    const back = () => {
      router.push("/home/mine");
    };
    return {
      back,
    };
  },
};
</script>

<style lang="less" scoped>
.tryimage_page {
  width: 100%;
  background-image: linear-gradient(to bottom, #b5edec, #fffae7);
  header {
    width: 100%;
    height: 90px;
    position: relative;
    .icon {
      position: absolute;
      top: 45px;
      left: 15px;
      width: 9.5px;
      height: 17px;
      color: #353534;
      font-size: 24px;
      font-weight: 600;
    }
    p {
      text-align: center;
      position: absolute;
      top: 45px;
      left: 130px;
      width: 120px;
      color: #333332;
      font-weight: 600;
      font-size: 20px;
    }
  }
  main {
    width: 100%;
    height: 280px;
    overflow: hidden;
    position: relative;
    background: url(../assets/img/tryimage/beijing.png) center no-repeat;
    background-size: 402px 130px;
    // background: #e0e0e0;
    .msg_p {
      width: 180px;
      height: 60px;
      color: #1c898b;
      font-size: 18px;
      font-weight: 600;
      line-height: 27px;
      margin-top: 30px;
      margin-left: 15px;
      margin-bottom: 30px;
    }
    .box {
      font-size: 14px;
      .middle_box {
        width: 90%;
        margin: 0 auto;
        padding: 20px;
        background: white;
        border-radius: 10px;
        position: relative;
        z-index: 10;
        .small_box {
          width: 300px;
          margin: 0 auto;
          display: flex;
          justify-content: space-around;
          margin-bottom: 10px;
          hr {
            width: 75px;
            height: 1px;
            border: none;
            border-top: 1px solid #e0e0e0;
            margin-top: 18px;
          }
          .circle {
            width: 36px;
            height: 36px;
            border: solid #e0e0e0;
            color: #e0e0e0;
            text-align: center;
            line-height: 36px;
            border-radius: 18px;
          }
        }
        .status_sp {
          color: #878787;
        }
        .totest {
          width: 80px;
          height: 25px;
          line-height: 7px;
          text-align: center;
          display: inline-block;
          color: white;
          padding: 10px;
          background: url(../assets/img/tryimage/diancicefu.png) no-repeat
            center;
          background-size: 71px 25px;
          margin-top: 5px;
        }
      }
    }
    .rili {
      width: 75px;
      height: 54px;
      position: absolute;
      top: 30px;
      right: 30px;
    }
    .cat {
      width: 93px;
      height: 84px;
      position: absolute;
      top: 40px;
      right: 75px;
    }
  }
  footer {
    width: 100%;
    height: 442px;
    padding-top: 30px;
    .my-swipe .van-swipe-item {
      color: #fff;
      font-size: 20px;
      line-height: 100px;
      text-align: center;
      .slide_pic {
        widows: 313px;
        height: 354px;
      }
    }
  }
}
</style>
